<template>
  <button class="md-button" :loading="props.loading" @click="$emit('click')"><slot /></button>
</template>
<script setup lang="ts">
// 接收props
let props = defineProps<{
  loading: Boolean;
}>();
</script>
<style lang="scss" scoped>
.md-button {
  height: 88rpx;
  border-radius: 44rpx;
  background: $theme-color;
  color: $white;
  font-size: 32rpx;
}
</style>
